# Project:	Mr Cloud
# Author:	gong_libin
# Date:		2013_05_09

CC = gcc
CFLAGS ?= -g -Wall -fPIC

MR_ENV ?= $(shell pwd)/../..
MR_INC ?= $(MR_ENV)/inc
MR_SRC ?= $(MR_ENV)/src
MR_OBJ ?= $(MR_SRC)/MrObj

OBJECTS =				\
	MrUtl.o

all: $(OBJECTS) install

$(OBJECTS): %.o: %.c
	$(CC) -c $(CFLAGS) -I$(MR_INC) $< -o $@

install:
	cp $(OBJECTS) $(MR_OBJ)/.

clean:
	rm -rf $(OBJECTS)
